import { axios } from '@/utils/request'

/**
 * 查询客户
 *
 * @author Eric
 * @date 2021-04-01 20:26:12
 */
export function customerPage (parameter) {
  return axios({
    url: '/customer/page',
    method: 'get',
    params: parameter
  })
}

/**
 * 客户列表
 *
 * @author Eric
 * @date 2021-04-01 20:26:12
 */
export function customerList (parameter) {
  return axios({
    url: '/customer/list',
    method: 'get',
    params: parameter
  })
}

/**
 * 添加客户
 *
 * @author Eric
 * @date 2021-04-01 20:26:12
 */
export function customerAdd (parameter) {
  return axios({
    url: '/customer/add',
    method: 'post',
    data: parameter
  })
}

/**
 * 编辑客户
 *
 * @author Eric
 * @date 2021-04-01 20:26:12
 */
export function customerEdit (parameter) {
  return axios({
    url: '/customer/edit',
    method: 'post',
    data: parameter
  })
}

/**
 * 删除客户
 *
 * @author Eric
 * @date 2021-04-01 20:26:12
 */
export function customerDelete (parameter) {
  return axios({
    url: '/customer/delete',
    method: 'post',
    data: parameter
  })
}
